package vcp.enums;

import vcp.client.utility.Common;
import vcp.enums.utility.EnumReverser;
import vcp.enums.utility.EnumReverser.IEnumReverser;

/**
 * 
 * @author VCP team
 *         <p>
 *         screen enum class
 *         </p>
 */
public enum Screen implements IEnumReverser
{
	DEMO ( "Demo" ),
	LOGIN ( "Login" ),
	WORKER ( "Worker" ),
	CUSTOMER ( "Customer" ),
	ONSITE ( "On Site" ),
	CHECK_IN ( "Check In" ),
	CHECK_OUT ( "Check Out" ),
	REGULAR_CHECK_IN ( "Regular Check In" ),
	COMPLAINT_HANDLE ( Common.TAB_COMPLAINT_HANDLE ),
	SITE_MAP ( Common.TAB_SITE_MAP ),
	GEN_REPORTS ( Common.TAB_GEN_REPORTS ),
	INFORMATION ( Common.TAB_INFO ),
	UPDATE_COSTS ( Common.TAB_UPDATE_COSTS ),
	APPROVE_COSTS ( Common.TAB_APPROVE_REQUEST ),
	ORDER_STATUS ( Common.TAB_ORDER_STATUS ),
	CANCEL_ORDER ( Common.TAB_CANCEL_ORDER ),
	ACCOUNT_STATUS ( Common.TAB_ACCOUNT_STATUS ),
	FILL_COMPLAINT ( Common.TAB_FILL_COMPLAINT ),
	SINGLE_USE ( Common.TAB_SINGLE_USE ),
	SUBSCRIBER ( Common.TAB_SUBSCRIBER ),
	STATISTICS ( Common.TAB_STATISTICS ),
	LOG_OUT ( Common.TAB_LOGOUT );

	private final String name;

	/** constructor **/
	private Screen ( String name )
	{
		this.name = name;
	}

	@Override
	public String toString ()
	{
		return this.name;
	}

	/** converts to enum per key **/
	public static Screen convert ( String key )
	{
		return EnumReverser.convert(Screen.class, key);
	}
}
